Computer science Lesson Plan
Class: 6th to 8th - Lesson:34 If-then-else condition

Purpose: To teach if-then-else condition. Students will learn the use of the if-then-else statement.

No. of Classes

Two or three classes (Teacher's decision).

Materials Required

Computer, Internet connection.

Prior knowledge

Students should know about conditional statements.

Exercises

Exercise:1



  • Using an ‘if’ condition, try to get nectar from the flowers.
No Image

Click here to play this level.

Exercise:2



  • Using an ‘ if’ condition, try to get nectar from the flowers.
No Image

Click here to play this level.

Exercise:3



  • Using an ‘if’ condition, try to get nectar from the flowers.
No Image

Click here to play this level.

Exercise:4



  • Using an ‘if-then-else’ condition try to get nectar from the flowers.
No Image

Click here to play this level.

Exercise:5



  • Using an ‘if-then-else’ condition try to get nectar from the flowers.
No Image

Click here to play this level.

Exercise:6



  • Using an ‘if-then-else’ condition try to get nectar from the flowers.
No Image

Click here to play this level.

Solutions



  • Link to copy solution for exercise-1.
  • Link to view solution for exercise-2.
  • Link to view solution for exercise-3.
  • Link to copy solution for exercise-4.
  • Link to view solution for exercise-5.
  • Link to view solution for exercise-6.

  • Teacher's Instruction
    1. Teachers should give their own creative activity to help students understand ‘if-then-else’ conditions.
    2. Teachers should explain the concept of if and if-else conditions, by using the solution videos of exercise-1 and exercise-4.